package com.web.mapper;

import com.web.entity.Doctor;
import org.apache.ibatis.annotations.Mapper;

import javax.print.Doc;
import java.util.List;

@Mapper
public interface DoctorMapper {

    //查询
    public List<Doctor> list(Doctor doctor);

    //根据id查询
    public Doctor findById(Integer doctorId);

    public void add(Doctor doctor);

    public void update(Doctor doctor);

    public void delete(Integer doctorId);

    public Doctor byPhone(Doctor doctor);


}
